"""
@author: chenzhenhua
@project: auto_jift
@file: exam_paper.py
@time: 2021/6/21 0021 16:18
@desc:
"""

base_data = [2020, 2021, '下']
ever_question_score = [1, 1, 1, 4]
subject_info = \
    {
        '数据挖掘':
            {
                'subject_name': '数据挖掘',
                'subject_code': '0809051028',
                'type': '本科',
                'major': '2018物联网工程'
            },
        '数据挖掘1':
            {
                'subject_code': '0809051029',
                'type': '本科',
                'major': '2018物联网工程'
            },
        '数据不挖掘':
            {
                'subject_code': '0809051030',
                'type': '本科',
                'major': '2018物联网工程'
            }

    }


def get_one_info(subject_name):
    return subject_info.get(subject_name)


def get_question_number():
    f = open('conf')
    r = f.read().split('\n')
    num_dict = {}
    for ri in r:
        q = ri.split(' ')
        num_dict[q[0]] = int(q[1])
    f.close()
    return num_dict
